
{include file="public/meta" /}
    

</head>

<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>清除邮件缓存</h5>
                    <div class="ibox-tools">
                        <a class="link">
                            <b>
                                <i class="layui-icon layui-icon-refresh"></i>
                            </b>
                        </a>
                    </div>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="tabs-container">
                            <h2></h2>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
    <!-- 全局js -->
    {include file="public/footer" /}
</body>
<script>
    var index = layer.load();
    $.ajax({
        url:"{:url('admin/email/email_cache_rm')}",
        type:'post',
        dataType:'json',
        success:function(res){
            if (res.data == 1) {
                layer.close(index);
                $('h2').append(res.message);
                layer.alert(res.message, {icon: 1});
            } else if (res.data == 0) {
                layer.close(index);
                $('h2').append(res.message);
                layer.alert(res.message, {icon: 5});
            } else {
                layer.close(index);
                layer.alert('出现未知错误，如果问题一直出现，您可以联系管理员', {icon: 5});
            }
        },error:function () {
            layer.close(index);
            layer.open({
                title: '修改失败'
                ,content: '当前网络环境不安全，拒绝登录，请调整网络环境'
            });
        }
    })
</script>
</html>
